#ifndef __VIDEO_ITEM_TOOL_INCLUDE__
#define __VIDEO_ITEM_TOOL_INCLUDE__
#include <QWidget>
#include "ui_ipc_tool_widget.h"
#include "IPC_Manager.h"

class VideoItemToolWidget :public QWidget {
	Q_OBJECT
public:
	VideoItemToolWidget(IPCManager* mgr, int videoIndex, QWidget* parent = NULL);
	virtual ~VideoItemToolWidget();


signals:
	void captureSuccess(QString IMGFile);


private slots :
	void onClickedRecord();	
	void onClickedCamera();

	void onClickedClose();

protected:
	void paintEvent(QPaintEvent *e);

private:
	Ui::FormIPCTool ui;
	IPCManager* ipc_mgr;
	int video_index;
	bool isRecord;
};

#endif